import { MockMethod } from 'vite-plugin-mock'

export default [
  {
    url: `/mock/history_1/AntiJamCalinterface/AntiJamCalEvaFormHisSend`,
    method: 'post',
    response: ({ body }) => {
      const { page, pageSize } = body
      return {
        code: 200,
        totalNum: 3,
        data: {
          dataarray:
            [{
              time: 1,
              historydataname: "试验样本一",
              sekid: 1,
              sekname: "导弹01",
              seklon: 1,
              seklat: 1,
              sekhei: 1,
              sekvel: 1,
              tgtid: 1,
              tgtname: "目标01",
              tgtlon: null,
              tgtlat: 1,
              tgthei: null,
              tgtvel: 1,
              jamid: 1,
              jamname: "干扰01",
              jamparentid: 1,
              jamparentname: 1,
              jammaxrange: 1,
              jamcurrange: 1,
              jamStyle: 1,
              jamActionStyle: 1,
            },
            {
              time: 1,
              historydataname: "试验样本二",
              sekid: 1,
              sekname: "导弹01",
              seklon: 1,
              seklat: 1,
              sekhei: 1,
              sekvel: 1,
              tgtid: 1,
              tgtname: "目标01",
              tgtlon: 1,
              tgtlat: 1,
              tgthei: 1,
              tgtvel: 1,
              jamid: 1,
              jamname: "干扰01",
              jamparentid: 1,
              jamparentname: 1,
              jammaxrange: 1,
              jamcurrange: 1,
              jamStyle: 1,
              jamActionStyle: 1,
            },
            {
              time: 1,
              historydataname: "试验样本三",
              sekid: 1,
              sekname: "导弹01",
              seklon: 1,
              seklat: 1,
              sekhei: 1,
              sekvel: 1,
              tgtid: 1,
              tgtname: "目标01",
              tgtlon: 1,
              tgtlat: 1,
              tgthei: 1,
              tgtvel: 1,
              jamid: 1,
              jamname: "干扰01",
              jamparentid: 1,
              jamparentname: 1,
              jammaxrange: 1,
              jamcurrange: 1,
              jamStyle: 1,
              jamActionStyle: 1,
            },]
        },
        msg: ''
      };
    }
  },
  {
    url: `/mock/history_1/search`,
    method: 'post',
    response: ({ body }) => {
      const { page, pageSize } = body
      return {
        code: 200,
        data: {
            total:2,
            items:[{
              id: 1,
              historydataname: "试验样本一",
              description: "------",
              description_1: "------",
              updatetime: "2024.3.7 14:30",
              },
              {
                id: 2,
                historydataname: "试验样本一",
                description: "------",
                description_1: "------",
                updatetime: "2024.3.7 14:30",
                }]
        },
        msg: ''
      };
    }
  },
  {
    url: `/mock/history_1/gethistorynameOption`,
    method: 'post',
    response: ({ body }) => {
      const { page, pageSize } = body
      return {
        code: 200,
        data: {
          historynameOptions:["样本一","李四"],
        },
        msg: ''
      };
    }
  },
  {
    url: `/mock/history_1/downloadfile`,
    method: 'post',
    response: ({ body }) => {
      const { page, pageSize } = body
      return {
        code: 200,
        data: {
          // historynameOptions:["样本一","李四"],
        },
        msg: ''
      };
    }
  },
]